package com.xnyzc.lhy.resource.feign.fallback.worksheet;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.common.penum.EErrorCode;
import com.xnyzc.lhy.order.entity.mq.OaCOrderPersonal;
import com.xnyzc.lhy.resource.entity.worksheet.param.*;
import com.xnyzc.lhy.resource.feign.worksheet.IOaAuthService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户验证服务  服务实现类
 * </p>
 *
 * @author haoyfa
 * @since 2019-11-10
 */
@Slf4j
@Service
public class OaAuthServiceFallback implements IOaAuthService {

    @Override
    public Rv getDetectionToken(DetectionToken loginToken) {
        return Rv.wrap(EErrorCode.noData, new Object());
    }

    @Override
    public OaCOrderPersonal billDetails(String orderNo) {
        log.error("查询订单详情失败，进入Fallback，订单号为：{}", orderNo);
        return null;
    }
}
